<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>Example</title>
</head>

<body>
    <script type="text/javascript">
    var firstVal = 5;
    var secondVal = "5";

    if (firstVal == secondVal) {
        document.writeln("They are the same");
    } else {
        document.writeln("They are NOT the same");
    }
    </script>
</body>

</html>
